/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ditt.outils;

/**
 *
 * @author attobra
 */
public class Limiterlongueur {
    
    public static final String suspension = "...";
    
    public String limitTexte(String texte,int max){
        
        if (texte.length() < max)
            return texte;
        else{
            
            return texte.substring(0, max- suspension.length())+suspension;
        }
    }
    
    
    
}
